# -*- coding: utf-8 -*- 
# @Time : 2023/11/22 11:12 
# @Author : YangGuangjian
# @File : logger.py


import logging
import logging.config
import sys

logging.config.fileConfig(r'G:\PythonProjects\api_test\configs\logging_config.ini')


def get_logger(name):
    logger = logging.getLogger(name)

    # Log messages
    # logger.debug('This is a debug message')
    # logger.info('This is an info message')
    # logger.warning('This is a warning message')
    # logger.error('This is an error message')

    return logger


if __name__ == '__main__':
    get_logger("test")